export const orderRules =  {
  'order_item_vo.product_name':[
    { required: true, message: '请输入货物名称', trigger: 'blur' },
  ],
  'order_item_vo.product_weight': [
    {required: true, message: '请输入货物重量', trigger: 'blur' },
    { pattern: /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/ , message: "请输入大于0的数字,最长32位，仅保留两位小数", trigger: "blur" },
    {min:1,max:32, message: "请输入大于0的数字,最长32位，仅保留两位小数", trigger: "blur" }
  ],
  'order_item_vo.product_packag':[
    { required: true, message: '请选择货物包装', trigger: 'change' },
  ],
  'order_item_vo.product_sort':[
    { required: true, message: '请选择货物品类', trigger: 'change' },
  ],
  'order_item_vo.produc_tbulk':[
    { required: true, message: '请输入货物体积', trigger: 'blur' },
    { pattern: /^(([1-9][0-9]*)|(([0]\.\d{1,2}|[1-9][0-9]*\.\d{1,2})))$/ , message: "请输入大于0的数字,最长32位，仅保留两位小数", trigger: "blur" },
    {min:1,max:32, message: "请输入大于0的数字,最长32位，仅保留两位小数", trigger: "blur" }

  ],
  
  'order_delivery_vo.shipper_code':[
    { required: true, message: '请输入名称', trigger: 'blur' },
  ],
  'order_delivery_vo.shipper_name':[
    { required: true, message: '请输入发货人姓名', trigger: 'blur' },
    { min:1, max:20,  message: '请输入正确姓名', trigger: 'blur' },

  ],
  'order_delivery_vo.shipper_contact':[
    { required: true, message: '请输入发货人联系方式', trigger: 'blur' },
    { pattern: /^1[3|4|5|7|8][0-9]{9}$/, message: "请输入正确手机号", trigger: "blur" },
  ],
  'order_delivery_vo.load_address':[
    { required: true, message: '请输入装货地址', trigger: 'change' },
  ],
  'order_delivery_vo.load_time':[
    { required: true, message: '请选择要求装货日期', trigger: 'change' },
  ],
  'order_delivery_vo.consignee_code':[
    { required: true, message: '请输入名称', trigger: 'blur' },
  ],
  'order_delivery_vo.consignee_name':[
    { required: true, message: '请输入收货人姓名', trigger: 'blur' },
    { min:1, max:20,  message: '请输入正确姓名', trigger: 'blur' },
  ],
  'order_delivery_vo.consignee_contact':[
    { required: true, message: '请输入收货人联系方式', trigger: 'blur' },
    { pattern: /^1[3|4|5|7|8][0-9]{9}$/, message: "请输入正确手机号", trigger: "blur" },
  ],
  'order_delivery_vo.consignee_address':[
    { required: true, message: '请输入收货地址', trigger: 'blur' },
  ],
  'order_delivery_vo.consignee_time':[
    { required: true, message: '请选择送达日期', trigger: 'change' },
  ],
  
  order_logisticss:[
    { required: true, message: '请至少选择两个途径地点', trigger: 'blur' },
  ],
  driver_id:[
    { required: true, message: '请选择司机姓名', trigger: 'change' },
  ],
  truck_id:[
    { required: true, message: '请选择实际承运车牌号', trigger: 'change' },
  ],
  escort_pic:[
    { required: true, message: '请上传押运单照片', trigger: 'change' },
  ],
  load_pic:[
    { required: true, message: '请上传装货照片', trigger: 'change' },
  ],
  sign_pic:[
    { required: true, message: '请上传签收单', trigger: 'change' },
  ],
  discharge_pic:[
    { required: true, message: '请上传卸货照片', trigger: 'change' },
  ],
  overrun_pic:[
    { required: true, message: '请上传超限证照片', trigger: 'change' },
  ],
  'order_payable_vo.fare':[
    { required: true, message: '请输入费用总价', trigger: 'blur' },
    { pattern: /(\d{1,8})|(\d{1,8}.\d{0,2})/, message: "请输入费用总价", trigger: "blur" },
  ]
}
